package com.xh.service;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONArray;
import com.xh.dao.IProcedureDao;
import com.xh.model.ProcedureTable;

@Service("iProcedureService")
public class IProcedureServiceImpl implements IProcedureService{
	private IProcedureDao iProcedureDao;

	
	@Override
	public JSONArray getValue(ProcedureTable pTable) {		
		JSONArray jsonArray=new JSONArray();
		jsonArray=iProcedureDao.getValueByProcedure(pTable);
		//如果需要返回不同的结果需要得到
		//String type=pTable.getResultType();
		//jsonArray.add(cs);
		System.out.println(jsonArray);
		return jsonArray;
	}

	/*public Map<String, ProcedureTable> findAllProcedureTable() {
		return	iProcedureDao.findAllProcedureTable();		
	}*/
	
	
	


}
